﻿<UserControl x:Class="dotNails.UI.ResultClassSelector"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="Styles.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>

    <Grid>
        <Rectangle HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Opacity="0.765" Fill="#FF252525" />

        <Border CornerRadius="30" Width="449" Height="151" BorderBrush="{DynamicResource Text1Brush}" BorderThickness="1" Background="#444444">

            <StackPanel Margin="10, 8, 10, 8">

                <Grid Margin="0">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="30"/>
                        <RowDefinition Height="63"/>
                        <RowDefinition Height="40"/>
                    </Grid.RowDefinitions>

                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>

                    <TextBlock x:Name="ProcedureName" FontSize="14" Grid.Row="0" Text="GetAllOrdersBySomething" HorizontalAlignment="Center" VerticalAlignment="Center" />

                    <StackPanel Orientation="Horizontal" Grid.Row="1" VerticalAlignment="Top" HorizontalAlignment="Center" Margin="0 5">
                        <TextBlock Text="Select a result class" VerticalAlignment="Top" TextWrapping="Wrap" FontSize="14" Width="90px" Margin="5 5 5 0"/>
                        <ComboBox x:Name="ResultClasses" Width="295px" Margin="5, 5, 5, 5" VerticalAlignment="Top" MaxDropDownHeight="187"  >
                            <ComboBox.ItemTemplate>
                                <DataTemplate>
                                    <StackPanel Orientation="Horizontal">
                                        <TextBlock Text="{Binding Type.Name}"/>
                                    </StackPanel>
                                </DataTemplate>
                            </ComboBox.ItemTemplate>
                        </ComboBox>
                    </StackPanel>

                    <TextBlock x:Name="TestResult" FontSize="12" Grid.Row="1" Text="Class doesn't match procedure result set, but whatev..." HorizontalAlignment="Center" VerticalAlignment="Bottom" Visibility="Hidden"/>

                    <StackPanel Orientation="Horizontal" Grid.Row="2" HorizontalAlignment="Center">
                        <Button x:Name="btnSave" Content="Save" Click="btnSave_Click" Width="60" Height="30" Margin="0 0 5 0" />
                        <Button x:Name="btnCancel" Content="Cancel" Click="btnCancel_Click" Width="60" Height="30" Margin="5 0 0 0" />
                    </StackPanel>
                </Grid>
            </StackPanel>
        </Border>
    </Grid>

</UserControl>

